<template>
  <div>
    <van-button type="success" @click="viewPdf">查看pdf文件</van-button>
  </div>
</template>

<script lang="ts" setup>
import {useRouter} from 'vue-router'
import { ref } from "vue";
const router = useRouter()

const viewPdf = () => {
    router.push('/pdf')
}
</script>
<style lang="scss" scoped></style>
